*{
    padding: 0;
    margin: 0;
    /* 对元素指定宽度和高度包括了 padding 和 border */
    box-sizing: border-box;
}
.container{
    /* 生成相对定位的元素，相对于其正常位置进行定位 */
    position: relative;
    height: 100vh;
    width: 100vw;
    /* 溢出处理:隐藏溢出并且不显示滚动★ */
    overflow: hidden;
}

.slider-container{
    /* 生成绝对定位的元素，正常定位以外的第一个父元素进行定位 */
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}


.slider-container:after{
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: linear-gradient(45deg, rgba(0, 0, 0, 0.356), rgba(0, 0, 0, 0.7));
}

.slider-container > div{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    /* 设置主轴和交叉轴的对齐方式 */
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.slider-container > div > div{
    /* 除第一张其他图片不可见 */
    overflow: hidden;
    box-shadow: 0 0 61px 0 rgba(0, 0, 0, 0.62);
}

.slider{
    width: 800px;
    height: 450px;
    display: grid;
    grid-template-columns: repeat(7,100%);
    /* 测试使用移动图片 */
    /* transform: translateX(-800px); */
}
.img{
    position: relative;
    overflow: hidden;
   
}
.img img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
}
.content{
    position: absolute;
    width: 800px;
    height: 450px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);    
    z-index: 999;
}

.btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 1rem,1.2rem;
    border-radius: 5px;
    background-color: #dddddd;
    outline: none;
    border: none;
    /* 光标变形 */
    cursor: pointer;
    /* 透明度 */
    opacity: 0.5;
    transition: .3s;
    /* 设置左右跳转的图标大小 */
    font-size: 70px;
    width: 50px;
}
#prev{
    left: 1%;
}
#next{
    right: 1%;
}
.btn :hover{
    /* 鼠标放上透明度增加 */
    opacity: 0.8;
}
ul{
    /* 绝对定位 */
    position: absolute;
    bottom: 2%;
    left: 50%;
    /* 旋转 */
    transform: translateX(-50%);
    list-style: none;
    /* ============== */
    display: flex;

}
ul li{
    width: 18px;
    height: 18px;
    margin: .3rem;
    border: 2.5px solid #2ecc71;
    background: rgba(212, 219, 196, 0.514);
    border-radius: 50%;
    cursor: pointer;
    
}

ul li.colored{
    background-color: rgb(43, 255, 96);
}

.content:before{
	content: '';
	position: absolute;
	height: 17%;
	width: 100%;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.background{
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
    left: 0;
    z-index: -1;;
}
.background .bg{
	position: absolute;
	width: 120%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(1.2);
	opacity: 0;
	transition: .5s;
}